package rad.framework.mda.generator.template.main.webapp.webinf;

public class JbossWeb
{
  protected static String nl;
  public static synchronized JbossWeb create(String lineSeparator)
  {
    nl = lineSeparator;
    JbossWeb result = new JbossWeb();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<!DOCTYPE jboss-web PUBLIC \"-//JBoss//DTD Web Application 2.4//EN\" \"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd\">" + NL + "" + NL + "<jboss-web>" + NL + "   <security-domain>java:/jaas/rad-framework</security-domain>" + NL + "" + NL + "<!-- Need to determine which to use if any" + NL + "    <replication-config>" + NL + "        <replication-trigger>SET_AND_GET</replication-trigger>" + NL + "        <replication-type>SYNC</replication-type>" + NL + "    </replication-config>" + NL + "    <replication-config>" + NL + "        <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>" + NL + "        <replication-granularity>SESSION</replication-granularity>" + NL + "    </replication-config>" + NL + "-->" + NL + "    " + NL + "</jboss-web>" + NL;
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
